/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.siagefi.model;

import br.siagefi.interfaces.BaseEntity;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author NOTE
 */

@Entity
@Table(name = "grupo_lancamento")
public class GrupoLancamento implements Serializable, BaseEntity{
    
    @Id @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
	 
    @Column(name = "descricao", length = 25)
    private String descricao;

    public GrupoLancamento() {
    }

    public GrupoLancamento(String descricao) {
        this.descricao = descricao;
    }

    @Override
    public Long getId() {
        return id;
    }
    
    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 17 * hash + Objects.hashCode(this.descricao);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GrupoLancamento other = (GrupoLancamento) obj;
        if (!Objects.equals(this.descricao, other.descricao)) {
            return false;
        }
        return true;
    }

    

    
}
